<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 检查某个字符串 S1 是否出现在字符串 S2中 -->
    <script>
        var s1 = 'asdffffhgib';
        var s2 = new RegExp('mmmm');
      if(s2.test(s1)){
        alert('在')
      }else{
        alert('不在')
      }
    </script>
    <script>
      var rte = /[^1-[0-9]]/
    </script>
</body>
</html>